.linkb {
    display: inline-block;
    min-width: calc(var(--buttons-size) - 2px);
    min-height: calc(var(--buttons-size) - 2px);

    background-color: white;
    border: 1px solid var(--medium-border);
    padding: 0 !important;

    /* !important cannot be used with @include */
    border-top-left-radius: var(--border-left-radius) !important;
    border-bottom-left-radius: var(--border-left-radius) !important;
    border-top-right-radius: var(--border-right-radius) !important;
    border-bottom-right-radius: var(--border-right-radius) !important;

    margin-left: -1px;

    &:hover {
        background-color: #ebebeb;
    }

    &:active,
    &:active:hover {
        background-color: white;
        box-shadow: inset 0 calc(var(--buttons-size) / 15) calc(var(--buttons-size) / 5)
            rgba(0, 0, 0, 0.25);
    }

    .nightMode & {
        margin-left: 1px;

        &:hover {
            background-color: #7a7a7a;
            border-color: #7a7a7a;
        }

        &:active,
        &:active:hover {
            box-shadow: inset 0 calc(var(--buttons-size) / 15)
                calc(var(--buttons-size) / 5) rgba(0, 0, 0, 0.35);
            border-color: #525252;
        }
    }
}

.topbut {
    display: inline-block;
    vertical-align: middle;
    width: calc(var(--buttons-size) - 12px);
    height: calc(var(--buttons-size) - 12px);
}

.nightMode img.topbut {
    filter: invert(1);
}
